package com.eckey.lab.common;

/**
 * @Author: ChengLiang
 * @CreateTime: 2023-11-06  10:41
 * @Description: TODO
 * @Version: 1.0
 */

public class Constants {

    public enum ResponseCode {
        SUCCESS("0000", "成功"),
        UN_ERROR("0001", "未知失败"),
        ILLEGAL_PARAMETER("0002", "非法参数"),
        INDEX_DUP("0003", "主键冲突");

        private String code;

        private String msg;

        ResponseCode(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public String getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }


}
